<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%@ page import="com.model.*"%> 
<%@taglib prefix="s" uri="/struts-tags"%>    
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'dbc.jsp' starting page</title>
</head>
<body>
	<a href="register.jsp">添加用户</a> 
	<a href="logout">注销${loginUser.username}</a> 
	<table border="1">
		<tr>
			<th>ID</th>
			<th>用户名</th>
			<th>密码</th>
			<th>操作</th>
		</tr>
	<s:iterator var="userslist" id="u">
		<s:property value="#num"/>
		<tr>
			<td><s:property value="u.username" /></td>
		</tr>
	</s:iterator>
	</table>
</body>
</html>
